package com.lianjinsu.shop.service.impl;

import com.lianjinsu.shop.entity.Banner;
import com.lianjinsu.shop.repository.dao.BannerDao;
import com.lianjinsu.shop.service.BannerService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class BannerServiceImpl implements BannerService {

    private final BannerDao bannerDao;

    @Override
    public List<Banner> bannerList(int limit) {
        return bannerDao.selectSortDesc(limit);
    }
}
